package com.java.entity.vo;
import lombok.Data;

@Data
public class FileUploadResult {
    private boolean success;
    private String realName;
    private String objectName;
    private String url;

    public FileUploadResult(boolean success,String realName, String objectName, String url) {
        this.success = success;
        this.realName = realName;
        this.objectName = objectName;
        this.url = url;
    }

    public static FileUploadResult success(String realName, String objectName, String url) {
        return new FileUploadResult(true,realName, objectName, url);
    }
}
